package com.itheima.chapter03.service;

import com.itheima.chapter03.domain.Article;

import java.util.List;

public interface ArticleService {
    List<Article> list();

    /**
     * 插入Article
     *
     * @param article
     * @return
     */
    int insert(Article article);

    /**
     * 删除指定article
     *
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 获取article详情
     *
     * @param id
     * @return
     */
    Article get(Integer id);
}
